<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:51:"D:\webroot\tongji/app/home\view\mcenter/signin.html";i:1543300163;s:48:"D:\webroot\tongji/app/home\view\common/head.html";i:1539420927;s:50:"D:\webroot\tongji/app/home\view\common/footer.html";i:1542422876;}*/ ?>
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='__HOME__/css/aui.css' rel='stylesheet' />
<style>
  .aui-bar-nav{background:white;}
  .aui-bar-nav .aui-btn .aui-iconfont{color:black;}
  body{background:#ffffff;color:gray;}
  .aui-bar-nav .aui-title{color:black;}
  h1{font-size:2rem;}
  
  .part1{background:url(__HOME__/images/sign.jpg); height:50%;background-size:cover;color:white;}
  .part1 p{color:white;}
   #statistics{padding:2rem 0; text-align:center;}
  .aui-icon-left{top:1rem;left:1rem;}
  .aui-content{margin-top:2rem;}
  
  .part2{line-height:2.5rem;text-align:center;border-bottom:1px solid #efefef;font-size:0.8rem}
  
  .singer_r_img {
	display: block;
	line-height: 45px;
	background: url(../images/sing_week.gif) right 2px no-repeat;
	vertical-align: middle;
	margin-bottom: -10px;
	text-decoration: none;
}

.singer_r_img:hover {
	background-position: right -53px;
	text-decoration: none;
}

.singer_r_img span {
	margin-left: 14px;
	font-size: 16px;
	font-family: 'Hiragino Sans GB','Microsoft YaHei',sans-serif !important;
	font-weight: 700;
	color: #165379;
}

.singer_r_img.current {
	background: url(images/sing_sing.gif) no-repeat 0 2px;
	border: 0;
	text-decoration: none;
}


.sign_succ_calendar_title {
	text-align: center;
	/*width: 398px;*/
	border-left: 1px solid #e3e3e3;
	border-right: 1px solid #e3e3e3;
	background: #fff;
}

.sign_main {
	border-top: 1px solid #e3e3e3;
	font-family: "Microsoft YaHei",SimHei;
	display: block;
}

.calendar_month_span {
	display: inline;
	line-height: 40px;
	font-size: 16px;
	color: #656565;
	letter-spacing: 2px;
	font-weight: bold;
}

.sign_equal {
	display:table;
	border-collapse:separate;
	width: 100%;
}

.sign_row {
	display:table-row;
}
.sign_row div {
	display:table-cell;
	width:14.3%;
	border-top: 1px solid #e3e3e3;
	/*border-bottom: 1px solid #e3e3e3;*/
	border-left: 1px solid #e3e3e3;
	height: 40px;
    text-align: center;
    line-height: 40px;
}
.sign_row .bold{
	font-weight: bold;
}
.sign_row div:last-child { 
	border-right: 1px solid #e3e3e3;
}
.sign_equal .sign_row:last-child div{
	border-bottom: 1px solid #e3e3e3;
}
.sign_equal .on {
	background: url(__HOME__/images/sign_have.gif) no-repeat center;
}

.sign_contener,.sign_contener:visited {
	line-height: 30px;
	background: #00a0e9;
	border: none;
	color: white;
	border-radius: 30px;
	padding: 0 10px;
	font-size: 16px;
}

.sign_contener:hover{
	background-color: red;
} 
</style>
<title>My equity</title>
<body>
<div class='part1'>
	<a href='javascript:history.go(-1);' style='color:white;'><span class="aui-iconfont aui-icon-left"></span></a>
	<div class='aui-content aui-content-padded'>
	  <h1><b>Sign in</b></h1>
	  <p>You have the sign-in sheets? </p>
	</div>
	
	<div id='statistics'>
	  <h1>0/days</h1>
	  <p>连续签到</p>
	</div>
</div>

<div class='part2'>
  <div class='aui-row'>
    <div class='aui-col-xs-4'><img src='__HOME__/images/calendar.jpg' style='display:inline' height='25' align='absmiddle' /> <?php echo $curMonth; ?></div>
    <div class='aui-col-xs-5'>&nbsp;</div>	
    <div class='aui-col-xs-3'>签到规则</div>
  </div>
</div>

<div style="zoom:0.8" id="calendar"></div>
<div style='color:gray;font-size:0.5rem; line-height:2rem;padding:0.5rem;display:none;'>提示：点击漏签日期可补签哦~</div>
<div style='color:gray;font-size:0.5rem; line-height:2rem;padding:0.5rem;'>
   <div class="aui-btn aui-btn-info aui-btn-block aui-btn-sm" onclick='sign()'>立即签到</div>
</div>

<div class='aui-row' style="height:6rem;padding:1rem 0.5rem;background:#f3f3f3;font-size:0.6rem;">
    <div class='aui-col-xs-5'><img src='__HOME__/images/sign1.jpg' style='display:inline' height='25' align='absmiddle' /> 连续签到有礼</div>
    <div class='aui-col-xs-2'>&nbsp;</div>	
    <div class='aui-col-xs-5' align=right>连续签到即可领取</div>
	
	<div>
	   <div style='width:4rem;height:2.3rem;border-radius:5px;background:white;margin-top:40px;text-align:center;'>
	      +5
		  <div>TCSN</div>
	   </div>
	   <div style='border-radius:50%;width:1.5rem;height:1.5rem;background:white;margin-left:25px;'></div>
	</div>
</div>

<div class='aui-row' style="height:5rem;padding:1rem 0.5rem;background:#f3f3f3;margin-top:0.3rem;font-size:0.6rem;">
	<div align=center style='width:3rem;'>
	  7天
	  <p><button style='border:1px solid #cdcdcd;color:#7c7c7c;background:#f3f3f3'>领取</button></p>
	</div>
</div>
<div class='aui-row' style="height:6rem;padding:1rem 0.5rem;background:#f3f3f3;margin-top:0.3rem;font-size:0.6rem;">
    <div class='aui-col-xs-5'><img src='__HOME__/images/sign2.jpg' style='display:inline' height='25' align='absmiddle' /> 签到有礼</div>
    <div class='aui-col-xs-2'>&nbsp;</div>	
    <div class='aui-col-xs-5' align=right>签到次数满足即可领取</div>
	
	<div>
	   <div style='width:4rem;height:2.3rem;border-radius:5px;background:white;margin-top:40px;text-align:center;'>
	      +100
		  <div>TCSN</div>
	   </div>
	   <div style='border-radius:50%;width:1.5rem;height:1.5rem;background:white;margin-left:25px;'></div>
	</div>
</div>

<div class='aui-row' style="height:5rem;padding:1rem 0.5rem;background:#f3f3f3;margin-top:0.3rem;font-size:0.6rem;">
	<div align=center style='width:3rem;'>
	  30天
	  <p><button style='border:1px solid #cdcdcd;color:#7c7c7c;background:#f3f3f3'>领取</button></p>
	</div>
</div>

<script type="text/javascript" src="__HOME__/script/api.js"></script>
<script type="text/javascript" src="__HOME__/script/aui-tab.js"></script>
<script type="text/javascript" src="__HOME__/script/aui-dialog.js" ></script>
<script type="text/javascript" src="__HOME__/script/aui-toast.js" ></script>
<script type="text/javascript" src="__HOME__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/layer/layer.js"></script>

<script type="text/javascript">
    var dialog = new auiDialog({})
    var toast = new auiToast({})
	function sign(){
	    toast.loading({title:"提交中..."})
		$.post("<?php echo url('signin'); ?>", function(data){
		    var data = JSON.parse(data);
		    if(data.error == 0){
			    dialog.alert({title:"提示",msg:'签到成功!',buttons:['确定']},function(){location.reload();});
			}else{
			    dialog.alert({title:"提示",msg:data.msg,buttons:['确定']});
			}
			toast.hide();
		})
	}
</script>

<script type="text/javascript" src="__HOME__/js/calendar2.js"></script>
<script type="text/javascript">
$(function(){
  var signList=<?php echo $signList; ?>;
   calUtil.init(signList);
});
</script>

</body>
</html>